﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace zzzmapdata
{
    public class Node
    {
        /// <summary>
        /// 节点类型
        /// </summary>
        public EnumNodeType nodeType {  get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string name { get; set; }    
        
        /// <summary>
        /// 宽
        /// </summary>
        public int width {  get; set; }
        /// <summary>
        /// 高
        /// </summary>

        public int height { get; set; }

        /// <summary>
        /// 坐标x
        /// </summary>
        public int locationx {  get; set; }
        /// <summary>
        /// 坐标y
        /// </summary>

        public int locationy { get; set; }

        /// <summary>
        /// 颜色
        /// </summary>
        public Color color { get; set; }

        /// <summary>
        /// 层级
        /// </summary>
        public int index {  get; set; }

        /// <summary>
        /// 楼
        /// </summary>
        public int floor {  get; set; }

        /// <summary>
        /// 子节点
        /// </summary>
        public List<Node> children { get; set; }

        public Node()
        {

        }
        public Node(string name,int width,int height,int locationx,int locationy,Color color)
        {
            this.name = name;
            this.width = width;
            this.height = height;
            this.locationx = locationx;
            this.locationy = locationy;
            this.color = color;
        }
    }
}
